package org.japo.java.basics.samples;

public class HoraUnitaria {

    int h;
    int m;
    int s;

    public HoraUnitaria(int h, int m, int s) {
        this.h = h;
        this.m = m;
        this.s = s;
    }
    
    
    public boolean validarHora() {
        return h >= 0 && h <= 23 && m >= 0 && m <= 59 && s >= 0 && s <= 59;
    }
}
